package com.example.jvmdemo.org.fenixsoft.jvm.test;

import lombok.Data;

@Data
public class B {
    private String s;
    public static void main(String[] args) {
        A a=new A();
        a.setI(1);
        a.setS("a1");

        B b=new B();
        b.setS("b1");

        f1(a,b);
        System.out.println("a "+a+" \n"+b);

    }

    public static void f1(A a,B b){
        a.setI(2);
        a.setS("a2");
        b.setS("b2");
    }
}
